<div id="fancy_bg"><div id="fancy_bg_n" class="fancy_bg"/><div id="fancy_bg_ne" class="fancy_bg"/><div id="fancy_bg_e" class="fancy_bg"/><div id="fancy_bg_se" class="fancy_bg"/><div id="fancy_bg_s" class="fancy_bg"/><div id="fancy_bg_sw" class="fancy_bg"/><div id="fancy_bg_w" class="fancy_bg"/><div id="fancy_bg_nw" class="fancy_bg"/></div>
<div class="pad">
<div class="indentb">
<script type="text/javascript">
  jQuery.noConflict();  
  // Put all your code in your document ready area  
  jQuery(document).ready(function($){  
      $('#tagname').suggest('site.php?ac=ajax&op=srh_prof',{
          formatItem: function(item) {
          return item.tagname;
      }
      })
  });
  </script>
<form class="j a_profile_form" method="post" name="mainform" id="mainform" action="site.php?ac=profile&op=new">
	<div id="$id">
	<h1>添加档案</h1>
  <a href="javascript:void(O)" class="j a_close_dialog float_del"></a>
	<div id="notice" >
	<table>
<!--{if !isset($profile_name)}-->
  <tr>
    <td> 档案名:</td>
    <td><input type="text" id="tagname" name="tagname"  autocomplete="off" class="ac_input t_input"/>
    </td>
  </tr>
  <!--{else}-->
		  <input type="hidden" id="tagname" name="tagname" value="$profile_name">
<!--{/if}-->
  <tr>
    <td>所属分类:</td>
	<td>
		  <input type="hidden" id="profid"  name="profid" value="$profid">

		<script type="text/javascript">
		  function setcate() {
			switch (document.mainform.catenew.value) {
				$subcatselect
			}
			document.mainform.sfnew.options.length = 0;
			for(var i = 0; i < sfOptions.length/2; i++) {
			  document.mainform.sfnew.options[i]=new
			  Option(sfOptions[i*2],sfOptions[i*2+1]);
			  if (document.mainform.sfnew.options[i].value==$sfid)
			  document.mainform.sfnew.selectedIndex = i;
			}
		  }
		</script>

		<SELECT NAME=catenew  OnChange="setcate();" >
		  $cateselect
		</SELECT>
		-
		<SELECT NAME=sfnew >
		</SELECT>
	</td>
	</tr>
<!--{if $picreferred}-->
  <input type="hidden" id="id" name="id" value="$id">
  <input type="hidden" id="picid"  name="picid" value="$picid">
<!--{/if}-->
<tr>
    <td> 照片: </td>
  <td><input name="pic" type="text"  class="ac_input t_input" id="pic" style="width: 376px;"/>
  </td>
</tr>
  <tr>
		<td valign="top">说明:</td>
		<td><textarea id="announcement" name="announcement" style="width:380px;" rows="5" ></textarea>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
		<input type="hidden" name="mtagsubmit" value="true">
	<button name="sharesubmit_btn" id="sharesubmit_btn" type="submit" class="submit" value="true">确定</button>
	</td>
	</tr>
	</table>
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>
</div>
